
package hibernate.template.basic;

import hibernate.model.bean.PersonInfo;

import org.hibernate.SessionFactory;
import org.springframework.orm.hibernate3.HibernateTemplate;

/**
 * PersonInfo Dao
 * 
 * @see model.bean.PersonInfo
 * @author Eric.Kao gau168.gau@msa.hinet.net
 * @version 1.0
 * @company E885 Group
 * @copyright Copyright (c) 2001-2008
 */

public class PersonInfoDAOTemplateBasic
{
	private HibernateTemplate hibernateTemplate;

	public PersonInfoDAOTemplateBasic( SessionFactory sessionFactory )
	{
		hibernateTemplate = new HibernateTemplate( sessionFactory );
	}

	/**
	 * get only data
	 * 
	 * @param id
	 * @return
	 */
	public PersonInfo findById( java.lang.String id )
	{
		return ( PersonInfo )hibernateTemplate.get( PersonInfo.class, id );
	}
}